<template>
  <div class="upload-body">
    <p>请上传新版或旧版身份证</p>
    <div class="top">
      <img class="select-card" :src="cardNew" alt="" @click="handleCard('new')">
    </div>
    <div class="bottom">
      <img class="select-card" :src="cardOld" alt="" @click="handleCard('old')">
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      cardNew: require('@/assets/card_new.png'),
      cardOld: require('@/assets/card_old.png'),
    }
  },
  methods: {
    handleCard(val) {
      this.$router.push({name: 'selectCard', params: {card: val}})
    }
  },
}
</script>

<style lang="scss" scoped>
.upload-body {
  display: flex;
  flex-direction: column;
  padding: 30px;
  p {
    align-self: flex-start;
    font-family: PingFang SC;
    font-weight: 500;
    color: #333333;
  }
  div {
    padding: 30px 0;
    border-bottom: #eee 1px solid;
  }
  div:last-child {
    border: none
  }
  .select-card {
    width: 100%;
  }
}
</style>
